package com.example.dynamic.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.dynamic.mapper.PublicMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Dynamic02Service {

    @Autowired
    private PublicMapper publicMapper;

    @DS("dynamic-02")
    public List<String> findAllCompanyByDs() {
        return publicMapper.findAllCompany();
    }

    public List<String> findAllCompany() {
        return publicMapper.findAllCompany();
    }

}
